﻿#region Copyright

// Majesty of Omega - The next evolution of macro management space strategy
// 
// Copyright 2007-2009 André Claaßen
// 
// This file is protected by the terms and conditions of the
// Microsoft Community License (Ms-CL 1.1), a copy of which should
// have been distributed along with this software. If not,
// you may find the license information at the following URL:
// 
// http://www.microsoft.com/resources/sharedsource/licensingbasics/communitylicense.mspx

#endregion

#region

using System.Xml.Serialization;

#endregion

namespace Majesty_of_Omega.Config
{
    /// <remarks/>
    [XmlType(AnonymousType = true, Namespace = "http://master-of-omega/Credits.xsd")]
    [XmlRoot(Namespace = "http://master-of-omega/Credits.xsd", IsNullable = false)]
    public class Credits : Spreadsheet
    {
        /// <remarks/>
        [XmlElement("Group")]
        public CreditsGroup[] Group { get; set; }
    }

    /// <remarks/>
    [XmlType(AnonymousType = true, Namespace = "http://master-of-omega/Credits.xsd")]
    public class CreditsGroup
    {
        /// <remarks/>
        [XmlElement("Person")]
        public CreditsGroupPerson[] Person { get; set; }

        /// <remarks/>
        [XmlAttribute]
        public string name { get; set; }
    }

    /// <remarks/>
    [XmlType(AnonymousType = true, Namespace = "http://master-of-omega/Credits.xsd")]
    public class CreditsGroupPerson
    {
        /// <remarks/>
        [XmlAttribute]
        public string name { get; set; }

        /// <remarks/>
        [XmlAttribute]
        public string nick { get; set; }

        /// <remarks/>
        [XmlAttribute]
        public string text { get; set; }
    }
}